package com.ambow.Entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.*;

@Entity
@Table
public class DeliverToStation extends ID implements Serializable {
  private Date deliverDate;
  private int lnum;//领书数量
  @ManyToOne(targetEntity=Station.class)
  @JoinColumn(name="station_id",referencedColumnName="id")
  private Station station;//函授站
  @ManyToOne
  @JoinColumn(name="textBook_id",referencedColumnName="id")
  private TextBook textBook;//教材
  @ManyToOne(targetEntity=Operator.class)
  @JoinColumn(name="operater_id",referencedColumnName="id")
  private Operator operator;//操作员
	public Date getDeliverDate() {
		return deliverDate;
	}
	public void setDeliverDate(Date deliverDate) {
		this.deliverDate = deliverDate;
	}
	public Station getStation() {
		return station;
	}
	public void setStation(Station station) {
		this.station = station;
	}
	public TextBook getTextBook() {
		return textBook;
	}
	public void setTextBook(TextBook textBook) {
		this.textBook = textBook;
	}
	public Operator getOperator() {
		return operator;
	}
	public void setOperator(Operator operator) {
		this.operator = operator;
	}
	/**
	 * @return the lnum
	 */
	public int getLnum() {
		return lnum;
	}
	/**
	 * @param lnum the lnum to set
	 */
	public void setLnum(int lnum) {
		this.lnum = lnum;
	}
	  
  
}
